home *** CD-ROM | disk | FTP | other *** search
-
- /*
- There may be additional include files required depending
- upon the compile product you are using. Typical compilers
- include Microsoft C by Microsoft or Turbo C by Boland Int'l.
- */
- #include <stdio.h>
- main()
- {
- int *p; /* integer pointer */
- int zx=10, zz;
-
- p=&zx; /* assign the address to the pointer */
- zz= *p; /* indirectly store 10 in zx */
- printf("%d %d\n",zz, *p );
- }
-